<template>
	<view class="profile">
		<my></my>
		<funList></funList>
	</view>
</template>

<script>
	import my from '@/components/profile/my/my.vue'
	import funList from '@/components/profile/funList/funList.vue'
	import {
		getUserInfo
	} from '@/api/contents/user/user.js'
	export default {
		components: {
			my,
			funList
		},
		data() {
			return {

			};
		},
		methods: {
			getUserInfo() {
				getUserInfo().then(res => {
					if (res.code == 0) {
						this.$store.commit('updateUserInfo', res.data);
						uni.hideLoading();
					}
				})
			}
		},
		onLoad() {
			//获取个人信息
			this.getUserInfo();
		},
		onShow() {
			//获取个人信息
			this.getUserInfo();
		}
		
	}
</script>

<style lang="scss" scoped>
	.profile {
		// #ifdef H5 
		height: calc(100vh - 94px);
		//  #endif
		// #ifdef MP-WEIXIN || APP-PLUS
		height: 100vh;
		// #endif
		background-color: #F5F7FA;
		background-image: url(../../static/images/profile/bg.png);
		background-size: 100%;
		background-repeat: no-repeat;

	}
</style>
